package com.bw.result;

/**
 * @author liuzhihao
 * @version 1.0
 * @description: TODO
 * @date 2023/11/13 19:41:14
 */
public enum ResponseState {
    SUCCESS(2000,"成功"),
    ERROR(2001,"失败"),
    EXIST(2002,"房源信息已存在"),
    NOT_EXIST(2003,"数据不存在"),
    UNKNOWN(2004,"未知错误"),
    BROKER_NOT_EXIST(2005,"经纪人不存在"),
    MOBILE_NOT_NULL(2006,"手机号不能为空"),
    MOBILE_ERROR(2007,"手机号错误"),
    CODE_ERROR(2008,"验证码输入错误"),
    GET_CODE_ERROR(2009,"获取验证码失败"),
    BROKER_EXIST(2010,"经纪人信息已存在"),
    INSERT_ERROR(2011,"新增失败"),
    UPDATE_ERROR(2012,"修改失败"),
    DELETE_ERROR(2013,"删除失败"),
    AREA_NOT_EXIST(2014,"地区数据不存在"),
    SEND_CODE_ERROR(2015,"短信发送失败"),
    DICTIONARY_NOT_EXIST(2016,"房源类型/标签/发布类型不存在"),
    EMPLOYEE_NOT_EXIST(2017,"员工不存在"),
    LIVE_NOT_EXIST(2018,"直播间不存在"),
    CODE_ERROR_EXPIRED(2019,"验证码失效"),
    LIVE_EXIST(2020,"直播间已存在"),
    DATA_DO_NOT_NULL(2021,"数据不能为空"),
    CODE_NOT_REPEATED_REQUEST(2022,"一分钟之内不允许重复获取验证码"),
    LIVE_CALL_BACK_ERROR(2023,"录制上传失败"),
    BROKER_HAS_HOUSE(2025,"经纪人还有房源"),
    USER_EXIST(2024,"用户已存在"),;

    private int code;
    private String message;

    ResponseState(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
